package com.groupbuying.payproducer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(name = "bus-customer")
public interface CustomerFeign {

    //获取openid
    @RequestMapping(value = "/customerWxinInfo/getOpenidByCustomerId", method = RequestMethod.GET)
    String getOpenidByCustomerId(@RequestParam("customerId") String customerId);

    //获取支付宝userId
    @GetMapping("/customerAliinfoRel/getAliUserId")
    String getAliUserId(@RequestParam("customerId") String customerId);


    //通过用户ID获取够样的用户UUID
    @GetMapping("/customerInfo/getMainUuidByCustomerId")
    String getMainUuidByCustomerId(@RequestParam("customerId") String customerId);
}